<%@ Page Title="Maintenance Details" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" 
	Inherits="System.Web.Mvc.ViewPage<GoldenBicycleCompany.Core.Maintenance>" %>
<%@ Import Namespace="GoldenBicycleCompany.Web.Controllers" %>

<asp:Content ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <h1>Maintenance Details</h1>

    <ul>
		<li>
			<label for="Maintenance_Bicycle">Bicycle:</label>
            <span id="Maintenance_Bicycle"><%= Server.HtmlEncode(ViewData.Model.Bicycle.ToString()) %></span>
		</li>
		<li>
			<label for="Maintenance_ProblemDescription">ProblemDescription:</label>
            <span id="Maintenance_ProblemDescription"><%= Server.HtmlEncode(ViewData.Model.ProblemDescription.ToString()) %></span>
		</li>
		<li>
			<label for="Maintenance_ProblemResolution">ProblemResolution:</label>
            <span id="Maintenance_ProblemResolution"><%= Server.HtmlEncode(ViewData.Model.ProblemResolution.ToString()) %></span>
		</li>
		<li>
			<label for="Maintenance_RepairStartTime">RepairStartTime:</label>
            <span id="Maintenance_RepairStartTime"><%= Server.HtmlEncode(ViewData.Model.RepairStartTime.ToString()) %></span>
		</li>
		<li>
			<label for="Maintenance_RepairEndTime">RepairEndTime:</label>
            <span id="Maintenance_RepairEndTime"><%= Server.HtmlEncode(ViewData.Model.RepairEndTime.ToString()) %></span>
		</li>
	    <li class="buttons">
            <%= Html.Button("btnBack", "Back", HtmlButtonType.Button, 
                "window.location.href = '" + Html.BuildUrlFromExpressionForAreas<MaintenancesController>(c => c.Index()) + "';") %>
        </li>
	</ul>

</asp:Content>
